
public class PersonTest {

	public static void main(String[] args) {
		Person p1 = new Person("Beck", "Matt", "123-45-6789");
		Person p2 = new Person("Martinelli", "Stefano", "123-45-6799");
		System.out.println("Person1\n" + p1.toString());
		System.out.println();
		System.out.println("Person2\n" + p2.toString());
		System.out.println();
		System.out.println("Is p1 equal to p2?: " + p1.equals(p2));
		System.out.println();
		
		Student s1 = new Student("Beck", "Matt", "123-45-6789", "123", 3.5, "Smith");
		Student s2 = new Student("Martinelli", "Stefano", "123-45-6799", "124", 3.0, "Jones");
		System.out.println("Student1\n" + s1.toString());
		System.out.println();
		System.out.println("Student2\n" + s2.toString());
		System.out.println();
		System.out.println("Is s1 equal to s2?: " + s1.equals(s2));
		System.out.println();
		
		Employee e1 = new Employee("Beck", "Matt", "123-45-6789", "123", 55000, "Jones");
		Employee e2 = new Employee("Martinelli", "Stefano", "123-45-6789", "124", 55000, "Smith");
		System.out.println("Employee1\n" + e1.toString());
		System.out.println();
		System.out.println("Employee2\n" + e2.toString());
		System.out.println();
		System.out.println("Is e1 equal to e2?: " + e1.equals(e2));
		System.out.println();
		
		System.out.println("Is e1 equal to p1?: " + e1.equals(p1));
		System.out.println("Is e1 equal to p2?: " + e1.equals(p2));
		System.out.println("Is e1 equal to s1?: " + e1.equals(s1));
	}

}
